package com.mingqijia.gassafety.webserver.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 *
 * @author wanghai
 * @since 2022-03-11
 */

@Data
@ApiModel(value = "报警记录详情")
public class WarningRecordDetailRequest {


    @ApiModelProperty(value = "客户id")
    @NotNull(message = "客户id不能为空")
    private Integer consumerId;

    @ApiModelProperty(value = "imei")
    @NotBlank(message = "imei不能为空")
    private String imei;

    @ApiModelProperty(value = "通知开始时间 ")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @NotNull(message = "通知开始时间不能为空")
    private String startTime;

    @ApiModelProperty(value = "通知结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String endTime;

    @ApiModelProperty(value = "报警开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @NotBlank(message = "报警开始时间不能为空")
    private String warningStartTime;

    @ApiModelProperty(value = "触发规则名")
    @NotBlank(message = "触发规则名不能为空")
    private String ruleName;




}
